![]() |
Sensor Fusion for Kinetis MCUs (ISSDK/KSDK version)
|
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | AccelBuffer |
| struct | AccelCalibration |
Macros | |
| #define | ACCEL_CAL_AVERAGING_SECS 2 |
| #define | MAX_ACCEL_CAL_ORIENTATIONS 12 |
Typedefs | |
| typedef struct AccelBuffer | AccelBuffer |
| typedef struct AccelCalibration | AccelCalibration |
Functions | |
| void | fInitializeAccelCalibration (struct AccelCalibration *pthisAccelCal, struct AccelBuffer *pthisAccelBuffer, volatile int8_t *AccelCalPacketOn) |
| void | fUpdateAccelBuffer (struct AccelCalibration *pthisAccelCal, struct AccelBuffer *pthisAccelBuffer, struct AccelSensor *pthisAccel, volatile int8_t *AccelCalPacketOn) |
| void | fInvertAccelCal (struct AccelSensor *pthisAccel, struct AccelCalibration *pthisAccelCal) |
| void | fRunAccelCalibration (struct AccelCalibration *pthisAccelCal, struct AccelBuffer *pthisAccelBuffer, struct AccelSensor *pthisAccel) |
| void | fComputeAccelCalibration4 (struct AccelBuffer *pthisAccelBuffer, struct AccelCalibration *pthisAccelCal, struct AccelSensor *pthisAccel) |
| void | fComputeAccelCalibration7 (struct AccelBuffer *pthisAccelBuffer, struct AccelCalibration *pthisAccelCal, struct AccelSensor *pthisAccel) |
| void | fComputeAccelCalibration10 (struct AccelBuffer *pthisAccelBuffer, struct AccelCalibration *pthisAccelCal, struct AccelSensor *pthisAccel) |
| #define ACCEL_CAL_AVERAGING_SECS 2 |
calibration constants
calibration measurement averaging period (s)
Definition at line 34 of file precisionAccelerometer.h.
Referenced by DecodeCommandBytes(), and fUpdateAccelBuffer().
| #define MAX_ACCEL_CAL_ORIENTATIONS 12 |
number of stored precision accelerometer measurements
Definition at line 35 of file precisionAccelerometer.h.
Referenced by CreateAndSendPackets(), fComputeAccelCalibration10(), fComputeAccelCalibration4(), fComputeAccelCalibration7(), fInitializeAccelCalibration(), and fRunAccelCalibration().
| typedef struct AccelBuffer AccelBuffer |
accelerometer measurement buffer
| typedef struct AccelCalibration AccelCalibration |
precision accelerometer calibration structure
| void fComputeAccelCalibration10 | ( | struct AccelBuffer * | pthisAccelBuffer, |
| struct AccelCalibration * | pthisAccelCal, | ||
| struct AccelSensor * | pthisAccel | ||
| ) |
calculate the 10 element calibration from the available measurements
| pthisAccelBuffer | Buffer of measurements used as input to the accel calibration functions |
| pthisAccelCal | Accelerometer calibration parameter structure |
| pthisAccel | Pointer to the accelerometer input/state structure |
Definition at line 442 of file precisionAccelerometer.c.
Referenced by fRunAccelCalibration().
Here is the call graph for this function:
Here is the caller graph for this function:| void fComputeAccelCalibration4 | ( | struct AccelBuffer * | pthisAccelBuffer, |
| struct AccelCalibration * | pthisAccelCal, | ||
| struct AccelSensor * | pthisAccel | ||
| ) |
calculate the 4 element calibration from the available measurements
| pthisAccelBuffer | Buffer of measurements used as input to the accel calibration functions |
| pthisAccelCal | Accelerometer calibration parameter structure |
| pthisAccel | Pointer to the accelerometer input/state structure |
Definition at line 233 of file precisionAccelerometer.c.
Referenced by fRunAccelCalibration().
Here is the call graph for this function:
Here is the caller graph for this function:| void fComputeAccelCalibration7 | ( | struct AccelBuffer * | pthisAccelBuffer, |
| struct AccelCalibration * | pthisAccelCal, | ||
| struct AccelSensor * | pthisAccel | ||
| ) |
calculate the 7 element calibration from the available measurements
| pthisAccelBuffer | Buffer of measurements used as input to the accel calibration functions |
| pthisAccelCal | Accelerometer calibration parameter structure |
| pthisAccel | Pointer to the accelerometer input/state structure |
Definition at line 348 of file precisionAccelerometer.c.
Referenced by fRunAccelCalibration().
Here is the call graph for this function:
Here is the caller graph for this function:| void fInitializeAccelCalibration | ( | struct AccelCalibration * | pthisAccelCal, |
| struct AccelBuffer * | pthisAccelBuffer, | ||
| volatile int8_t * | AccelCalPacketOn | ||
| ) |
Initialize the accelerometer calibration functions.
| pthisAccelCal | Accelerometer calibration parameter structure |
| pthisAccelBuffer | Buffer of measurements used as input to the accel calibration functions |
| AccelCalPacketOn | Used to coordinate calibration sample storage and communications |
Definition at line 34 of file precisionAccelerometer.c.
Referenced by DecodeCommandBytes(), and initializeFusionEngine().
Here is the call graph for this function:
Here is the caller graph for this function:| void fInvertAccelCal | ( | struct AccelSensor * | pthisAccel, |
| struct AccelCalibration * | pthisAccelCal | ||
| ) |
function maps the accelerometer data fGs (g) onto precision calibrated and de-rotated data fGc (g), iGc (counts)
| pthisAccel | Pointer to the accelerometer input/state structure |
| pthisAccelCal | Accelerometer calibration parameter structure |
Definition at line 130 of file precisionAccelerometer.c.
Referenced by initializeSensors().
Here is the caller graph for this function:| void fRunAccelCalibration | ( | struct AccelCalibration * | pthisAccelCal, |
| struct AccelBuffer * | pthisAccelBuffer, | ||
| struct AccelSensor * | pthisAccel | ||
| ) |
function runs the precision accelerometer calibration
| pthisAccelCal | Accelerometer calibration parameter structure |
| pthisAccelBuffer | Buffer of measurements used as input to the accel calibration functions |
| pthisAccel | Pointer to the accelerometer input/state structure |
Definition at line 169 of file precisionAccelerometer.c.
Referenced by fUpdateAccelBuffer().
Here is the call graph for this function:
Here is the caller graph for this function:| void fUpdateAccelBuffer | ( | struct AccelCalibration * | pthisAccelCal, |
| struct AccelBuffer * | pthisAccelBuffer, | ||
| struct AccelSensor * | pthisAccel, | ||
| volatile int8_t * | AccelCalPacketOn | ||
| ) |
Update the buffer used to store samples used for accelerometer calibration.
| pthisAccelCal | Accelerometer calibration parameter structure |
| pthisAccelBuffer | Buffer of measurements used as input to the accel calibration functions |
| pthisAccel | Pointer to the accelerometer input/state structure |
| AccelCalPacketOn | Used to coordinate calibration sample storage and communications |
Definition at line 78 of file precisionAccelerometer.c.
Referenced by initializeSensors().
Here is the call graph for this function:
Here is the caller graph for this function: